package com.testing.class9;

import com.testing.DriverSelf.AppDriver;
import io.appium.java_client.android.AndroidDriver;
import org.openqa.selenium.By;

import java.net.MalformedURLException;

/**
 * @Classname QQTest
 * @Description 类型说明
 * @Date 2022/10/24 22:20
 * @Created by 特斯汀Roy
 */
public class QQTest {
    public static void main(String[] args) throws MalformedURLException {
        AppDriver appDriver = new AppDriver("4723", "", "", "");
        AndroidDriver driver = appDriver.getDriver();
        driver.findElement(By.xpath("//*[@text='QQ']")).click();
        driver.findElement(By.xpath("//*[@text='登录']")).click();
        driver.findElement(By.xpath("//*[@content-desc='请输入QQ号码或手机或邮箱']")).sendKeys("2798145476");
        driver.findElement(By.xpath("//*[@text='登录zhuce']")).click();

    }
}
